/*
 * @Author: xiweidong 1324156920@qq.com
 * @Date: 2024-08-30 10:23:04
 * @LastEditors: xiweidong 1324156920@qq.com
 * @LastEditTime: 2024-08-30 15:45:36
 * @FilePath: \cesium-1.87-demo\plugins\rollup.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// import webWorkerLoader from "rollup-plugin-web-worker-loader";
import terser from "@rollup/plugin-terser";

export default {
  // input: "./src/main.js",
  input:'./libs/ContourLineAlgorithm.js',
  output: {
    file: "./libs/ContourLineAlgorithm.min.js",
    format: "es",
    globals: {
      cesium: "Cesium",
    },
    plugins: [
      terser({
        compress: {
          collapse_vars: true,
          dead_code: true,
          drop_console: true,
          drop_debugger: true,
        },
      }),
    ],
  },
  //   plugins:
  // [webWorkerLoader(/* configuration */)],
};
